import { Entity, Column, CreateDateColumn } from 'typeorm';
import { BaseEntity } from '../../../common/base.entity';

@Entity('Room_use_records')
export class RoomUseRecordsEntity extends BaseEntity {
  @Column({ comment: '房间名称' })
  roomName?: string;

  @Column({ comment: '房间ID' })
  roomId?: string;

  @Column({ comment: '房间类型' })
  roomType?: string;

  @CreateDateColumn({ comment: '开始时间' })
  startTime?: Date;

  @CreateDateColumn({ comment: '结束时间' })
  endTime?: Date;

  @Column({ comment: '购买时长' })
  useTime?: string;

  @Column({ comment: '是否超出' })
  isOut?: boolean;

  @CreateDateColumn({ comment: '开始计费时间' })
  startChargeTime?: Date;

  @CreateDateColumn({ comment: '结束计费时间' })
  endChargeTime?: Date;

  @Column({ comment: '超出时长' })
  outTime?: string;
}